package com.zsrt.java.ex;

import static org.junit.Assert.*;

import java.util.ArrayList;

import org.junit.Test;

public class TestArrayList {
	
	@Test
	public void testName() throws Exception {
		
		
		ArrayList list=new ArrayList();
		list.add(new Book(1,"jsp","qa"));
		list.add(new Book(2,"xml","smitj"));
		list.add(new Book(3,"Oracle","Scott"));
		
		for(int i=0;i<list.size();i++){
			Book n = (Book)list.get(i);
			System.out.println(n.getBid()+n.getName()+n.getAuther());
			
			
			
		}
		
	}

}
